package com.itheima.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Delete;

public interface OrderSettingMapper extends BaseMapper<OrderSetting> {

    @Delete("delete FROM tb_order_setting WHERE PERIOD_DIFF( date_format( now( ) , '%Y%m' ) , date_format( order_date, '%Y%m' ) ) =1")
    public Boolean clearOssData();
}